import request from "../index";

type promiseType = {
    code:number,
    data:any,
    message:string
}

export function userLogin(data:object):Promise<promiseType>{
    return request({
        url:"/admin/login",
        data:data,
        method: "post"
    })
}